package com.yijiaw.dao;

import com.yijiaw.domain.Us;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Us entities.
 * 
 */
public interface UsDAO extends JpaDao<Us> {

	/**
	 * JPQL Query - findAllUss
	 *
	 */
	public Set<Us> findAllUss() throws DataAccessException;

	/**
	 * JPQL Query - findAllUss
	 *
	 */
	public Set<Us> findAllUss(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsById
	 *
	 */
	public Us findUsById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findUsById
	 *
	 */
	public Us findUsById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByAddress
	 *
	 */
	public Set<Us> findUsByAddress(String address) throws DataAccessException;

	/**
	 * JPQL Query - findUsByAddress
	 *
	 */
	public Set<Us> findUsByAddress(String address, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByContactContaining
	 *
	 */
	public Set<Us> findUsByContactContaining(String contact) throws DataAccessException;

	/**
	 * JPQL Query - findUsByContactContaining
	 *
	 */
	public Set<Us> findUsByContactContaining(String contact, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByContact
	 *
	 */
	public Set<Us> findUsByContact(String contact_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByContact
	 *
	 */
	public Set<Us> findUsByContact(String contact_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByNameContaining
	 *
	 */
	public Set<Us> findUsByNameContaining(String name) throws DataAccessException;

	/**
	 * JPQL Query - findUsByNameContaining
	 *
	 */
	public Set<Us> findUsByNameContaining(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByEmailContaining
	 *
	 */
	public Set<Us> findUsByEmailContaining(String email) throws DataAccessException;

	/**
	 * JPQL Query - findUsByEmailContaining
	 *
	 */
	public Set<Us> findUsByEmailContaining(String email, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByEmail
	 *
	 */
	public Set<Us> findUsByEmail(String email_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByEmail
	 *
	 */
	public Set<Us> findUsByEmail(String email_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPrimaryKey
	 *
	 */
	public Us findUsByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPrimaryKey
	 *
	 */
	public Us findUsByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByFax
	 *
	 */
	public Set<Us> findUsByFax(String fax) throws DataAccessException;

	/**
	 * JPQL Query - findUsByFax
	 *
	 */
	public Set<Us> findUsByFax(String fax, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPhoneContaining
	 *
	 */
	public Set<Us> findUsByPhoneContaining(String phone) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPhoneContaining
	 *
	 */
	public Set<Us> findUsByPhoneContaining(String phone, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByName
	 *
	 */
	public Set<Us> findUsByName(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByName
	 *
	 */
	public Set<Us> findUsByName(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByFaxContaining
	 *
	 */
	public Set<Us> findUsByFaxContaining(String fax_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByFaxContaining
	 *
	 */
	public Set<Us> findUsByFaxContaining(String fax_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByAddressContaining
	 *
	 */
	public Set<Us> findUsByAddressContaining(String address_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByAddressContaining
	 *
	 */
	public Set<Us> findUsByAddressContaining(String address_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPhone
	 *
	 */
	public Set<Us> findUsByPhone(String phone_1) throws DataAccessException;

	/**
	 * JPQL Query - findUsByPhone
	 *
	 */
	public Set<Us> findUsByPhone(String phone_1, int startResult, int maxRows) throws DataAccessException;

}